package com.cskaoyan.chapter0504;

import org.omg.CORBA.IntHolder;

/**
 * @Author:WalterChan
 * @Decription:HolderInt
 * @Date Created in 2024-06-11-22:20
 */
public class HolderInt {
    public static void main(String[] args) {
        int x=1;
        tripleInt(1);
        System.out.println(x);

        Integer x1=1;
        tripleInteger(x1);
        System.out.println(x1);


    }


    public static void tripleInt(int x){
        x=x*3;
    }
    public static void tripleInteger(Integer x){
        x=x*3;
    }
    public static void tripleIntHolder(IntHolder x){
        x.value=x.value*3;
    }
}
